import { constantRoutes } from '@/router/index'
export default {
  namespaced: true,
  state() {
    return {
      menuList: [...constantRoutes]
    }
  },
  mutations: {
    updateMenuList(state, asyncRoutes8) {
      state.menuList.push(...asyncRoutes8)
      // state.menuList = [...asyncRoutes8, ...constantRoutes]
    },
    resetMenu(state) {
      console.log('resetMenu')
      state.menuList = [...constantRoutes]
    }
  }
}
